package com.mrjy.activity.bo;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mrjy.activity.dao.IActivitySignupInfoDao;
import com.mrjy.activity.dto.ActivitySignUpPaidDTO;
import com.mrjy.common.entity.ActivitySignupInfo;
import com.mrjy.common.util.ResultUtil;

@Service
public class ActivitySignupInfoBo implements IActivitySignupInfoBo {
	
	@Autowired
	private IActivitySignupInfoDao activitySignupInfoDao;

	@Override
	public Object selectListByUserIdAndActId(ActivitySignupInfo info) {
		int count = activitySignupInfoDao.selectCountByUserIdAndActId(info) ;
		List<ActivitySignUpPaidDTO> list = activitySignupInfoDao.selectListByUserIdAndActId(info) ;
		return ResultUtil.success(list, count);
	}
}
